<!--WRAP-->
<div class="wrap">

<!--COLUMN 1-->
<div class="FourColGrid_c1">

<div id="myAvatar">
<?php 
        if($appliedDetail['Locum']['Avatar'])
        {
            echo '<img src="'. Router::url('/').'app/webroot/img/avatar/'.$appliedDetail['Locum']['Avatar'].'" width="100" alt="Locum">';
        }else
        {
            echo '<img src="'.Router::url('/').'app/webroot/img/avatar.jpg" width="100" height="100" alt="Locum">';
        }
?>
</div>

<?php if($appliedDetail['Apply']['status'] == 1){?>
    <?php  echo $html->link(__('Accept', true), array('controller'=>'pharmacies','action' => 'accepted/'.$appliedDetail['Apply']['id']),array('class'=>'TitleFive'));?>
    <?php echo $html->link(__('Decline', true), array('controller'=>'pharmacies','action' => 'decline/'.$appliedDetail['Apply']['id']),array('class'=>'TitleFive'));?>
<?php }?>

<?php if($appliedDetail['Apply']['status'] == 2){
        echo '<h3><span style="color: #F00;">Accepted</span></h3>';
        if($appliedDetail['Apply']['rate'] != 1)
             echo $html->link(__('Rate', true), array('controller'=>'pharmacies','action' => 'rate/'.$appliedDetail['Apply']['id']),array('class'=>'TitleFive'));
 }?>
 
 <?php if($appliedDetail['Apply']['status'] == 3){
        echo '<h3><span style="color: #F00;">Declined</span></h3>';
 }?>

</div>
<!--COLUMN 1-->

<!--COLUMN 2-->
<div class="FourColGrid_c2" style="width: 290px;">

<h4 class="TitleTwo"><?php echo $appliedDetail['Locum']['Username'] ?></h4>
<p>
<b>County - </b><?php echo $GLOBALS['Country'][$appliedDetail['Locum']['Country_id']];?><br>
<b>Rate of pay - </b><?php echo '£'.$appliedDetail['Apply']['HourlyRate'] ?> per hour<br><br>
<?php echo $html->link(__('Click here to view this Locums profile', true), array('controller'=>'pharmacies','action' => 'view_locum_profile/'.$appliedDetail['Apply']['locum_id']));?>
</p>
</div>
<!--COLUMN 2-->

<!--COLUMN 3-->
<div class="FourColGrid_c3" style="min-height: 160px;">
<div id="eventCalendarNoCache"></div>
<script>
$(document).ready(function() {
	$("#eventCalendarNoCache").eventCalendar({
		eventsjson: '<?php echo Router::url('/').'pharmacies/getJsonApply/'.$appliedDetail['Apply']['id'] ?>',
		cacheJson: false,
		multiple: true,
		allowClick:false,
		bothColor:true,
		jumpMonth:'<?php echo $jump;?>'
	});
});
</script>
<h4 class="TitleTwo">Application Dates</h4>
<p>Calendar key</p>
<ul class="listTwo">
<li class="unavailable"> = Vacancy</li>
<li class="applicationdates"> = Locum application dates</li>
</ul>
</div>
<!--COLUMN 3-->

<!--COLUMN 4-->
<div class="FourColGrid_c4">
<h6 class="TitleFive">Locum Search</h6>
<?php echo $this->element('search_for_pharmacy');?>
<br>
<?php echo $this->element('invite_pharmacy');?>
</div>
<!--COLUMN 4-->

</div>
<!--WRAP-->